/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.api.wrapper.approval.sign;

import java.math.BigDecimal;
import java.util.Date;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.api.base.warpper.ApiWrapper;
import org.opsli.common.annotation.validator.Validator;
import org.opsli.common.annotation.validator.ValidatorLenMax;
import org.opsli.common.annotation.validator.ValidatorLenMin;
import org.opsli.common.enums.ValidatorType;
import org.opsli.plugins.excel.annotation.ExcelInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 报名审批 Model
*
* @author 17607080935
* @date 2025-07-19 11:37:26
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class ApprovalSignModel extends ApiWrapper {

    /** 客户id */
    @ApiModelProperty(value = "客户id")
    @ExcelProperty(value = "客户id", order = 0)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(22)
    private String customerId;

    /** 学生id */
    @ApiModelProperty(value = "学生id")
    @ExcelProperty(value = "学生id", order = 1)
    @ExcelInfo
    @ValidatorLenMax(22)
    private String studentId;

    /** 合同编号 */
    @ApiModelProperty(value = "合同编号")
    @ExcelProperty(value = "合同编号", order = 2)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(222)
    private String contractCode;

    /** 业绩归属 */
    @ApiModelProperty(value = "业绩归属")
    @ExcelProperty(value = "业绩归属", order = 3)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    private String performanceBelonging;

    /** 状态 */
    @ApiModelProperty(value = "状态")
    @ExcelProperty(value = "状态", order = 4)
    @ExcelInfo( dictType = "approval_status" )
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(2)
    private String status;

    /** 附件 */
    @ApiModelProperty(value = "附件")
    @ExcelProperty(value = "附件", order = 5)
    @ExcelInfo
    private String enclosureJson;

    /** 课程id */
    @ApiModelProperty(value = "课程id")
    @ExcelProperty(value = "课程id", order = 6)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(22)
    private String courseId;

    /** 课程金额 */
    @ApiModelProperty(value = "课程金额")
    @ExcelProperty(value = "课程金额", order = 7)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(13)
    private BigDecimal coursePrice;

    /** 课程课时 */
    @ApiModelProperty(value = "课程课时")
    @ExcelProperty(value = "课程课时", order = 8)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(5)
    private Integer courseNumber;

    /** 优惠金额 */
    @ApiModelProperty(value = "优惠金额")
    @ExcelProperty(value = "优惠金额", order = 9)
    @ExcelInfo
    @ValidatorLenMax(13)
    private BigDecimal discountPrice;

    /** 赠送课时 */
    @ApiModelProperty(value = "赠送课时")
    @ExcelProperty(value = "赠送课时", order = 10)
    @ExcelInfo
    @ValidatorLenMax(5)
    private Integer freeNumber;

    /** 备注 */
    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "备注", order = 11)
    @ExcelInfo
    @ValidatorLenMax(225)
    private String remark;

    /** 付款金额 */
    @ApiModelProperty(value = "付款金额")
    @ExcelProperty(value = "付款金额", order = 12)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL, 
        ValidatorType.IS_MONEY
    })
    @ValidatorLenMax(13)
    private BigDecimal paymentPrice;

    /** 付款方式 */
    @ApiModelProperty(value = "付款方式")
    @ExcelProperty(value = "付款方式", order = 13)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(1)
    private Integer paymentMethod;

    /** 付款类型 */
    @ApiModelProperty(value = "付款类型")
    @ExcelProperty(value = "付款类型", order = 14)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(1)
    private Integer paymentType;

    /** 审批类型 */
    @ApiModelProperty(value = "审批类型")
    @ExcelProperty(value = "审批类型", order = 15)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    private Integer type;

    /** 付款备注 */
    @ApiModelProperty(value = "付款备注")
    @ExcelProperty(value = "付款备注", order = 16)
    @ExcelInfo
    @ValidatorLenMax(222)
    private String paymentRemark;

    /** 父级主键集合 */
    @ApiModelProperty(value = "父级主键集合")
    @ExcelProperty(value = "父级主键集合", order = 18)
    @ExcelInfo
    @ValidatorLenMax(500)
    private String orgIds;



}